package com.pkk.cloud.support.admin.dto.resp.server;

import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 获取客户端绑定的scope的权限
 * @author: peikunkun
 * @create: 2020-04-01 21:28
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OauthServerClientScopeByClientRespDto implements Serializable {

  private static final long serialVersionUID = -4842846789351067575L;


  /**
   * 服务的唯一key
   */
  private String key;


  /**
   * 服务的名称
   */
  private String title;

  /**
   * 操作类型【99:服务端,98:客户端】
   */
  private Integer type;

  /**
   * 主键id
   */
  private Long primaryId;


  /**
   * 是否已被选中
   */
  @Default
  private boolean checked = Boolean.FALSE;

  /**
   * 子集服务
   */
  private List<OauthServerClientScopeByClientRespDto> children;

}
